/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const permissionRouter = {
  path: '/permission',
  component: Layout,
  name: 'permission',
  meta: {
    title: '系统设置',
    icon: 'el-icon-setting'
  },
  children: [
    {
      path: 'user',
      component: () => import('@/views/permission/user'),
      name: 'user',
      meta: { title: '用户管理', noCache: true, icon: 'list' }
    },
    {
      path: 'role',
      component: () => import('@/views/permission/role'),
      name: 'role',
      meta: { title: '角色管理', noCache: true, icon: 'list' }
    }
  ]
}

export default permissionRouter
